<!--------------------------  拼团商品配置群  ----------------------------------->
<!-- 拼团商品组  风格一 -->
<script type="text/html" id="tpl_edit_fightgroup_goods">
    <div class="form-group">
        <div class="col-sm-2 control-label">背景颜色</div>
        <div class="col-sm-9">
            <div class="input-group input-group-sm">
                <input class="form-control diy-bind color" data-bind-child="style" data-bind="bgColor" value="<%style.bgColor||'#f6f6f6'%>" type="color" />
                <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">外边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.margin||'10'%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.margin||'10'%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="margin" value="<%style.margin%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">内边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.padding||'10'%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.padding||'10'%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="padding" value="<%style.padding%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">下边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.marginBottom%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.marginBottom%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="marginBottom" value="<%style.marginBottom%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">角标设置</div>
        <div class="col-sm-10">
            <label class="radio-inline"><input type="radio" name="marker_set" value="0" class="diy-bind" data-bind-child="params" data-bind="marker_set" <%if params.marker_set != 1%>checked<%/if%>>隐藏</label>
            <label class="radio-inline"><input type="radio" name="marker_set" value="1" class="diy-bind" data-bind-child="params" data-bind="marker_set" <%if params.marker_set == 1%>checked<%/if%>>显示</label>
        </div>
    </div>
    <%if params.marker_set == 1%>
    <div class="form-group">
        <div class="col-sm-2 control-label">角标背景颜色</div>
        <div class="col-sm-9">
            <div class="input-group input-group-sm">
                <input class="form-control diy-bind color" data-bind-child="style" data-bind="marker_bg" value="<%style.marker_bg||'#FF4444'%>" type="color" />
                <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">角标字体颜色</div>
        <div class="col-sm-9">
            <div class="input-group input-group-sm">
                <input class="form-control diy-bind color" data-bind-child="style" data-bind="marker_color" value="<%style.marker_color||'#FFFFFF'%>" type="color" />
                <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
            </div>
        </div>
    </div>
    <%/if%>
    <div class="form-group">
        <div class="col-sm-2 control-label">选择商品</div>
        <div class="col-sm-10">
            <label class="radio-inline"><input type="radio" name="type" value="1" class="diy-bind" data-bind-child="params" data-bind="type" <%if params.type == 1%>checked<%/if%>>手动选择</label>
            <label class="radio-inline"><input type="radio" name="type" value="2" class="diy-bind" data-bind-child="params" data-bind="type" <%if params.type == 2%>checked<%/if%>>自动加载</label>
        </div>
    </div>
    <%if params.type == 1%>
    <div class="form-items indent" data-min="1">
        <div class="inner">
            <%each data as item itemid%>
            <div class="item" data-id="<%itemid%>">
                <span class="btn-del" title="删除"></span>
                <div class="item-image">
                    <img src="<%item.logo%>" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/nopic.jpg';"/>
                    <span class="select_goods selectButton" data-plugin="<%plugin%>" data-id="<%itemid%>">选择商品</span>
                </div>
                <div class="item-form">
                    <div class="input-group" style="margin-bottom:0px; ">
                        <span class="input-group-addon btn btn-default">商品名称</span>
                        <input type="text" class="form-control" disabled value="<%item.goods_name%>" />
                    </div>
                    <div class="input-group" style="margin-top:10px;margin-bottom:0px; ">
                        <span class="input-group-addon btn btn-default">店铺名称</span>
                        <input type="text" class="form-control diy-bind" disabled value="<%item.storename%>" />
                    </div>
                </div>
            </div>
            <%/each%>
        </div>
        <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
    </div>
    <%/if%>
    <%if params.type == 2%>
    <div class="form-group">
        <div class="col-sm-2 control-label">选择分类</div>
        <div class="col-sm-9">
            <select name="classs" class="form-control select2 diy-bind" data-bind="classs" data-bind-child="params" >
                <option value="-1">全部商品</option>
                <%each goodCate.list as item%>
                <option value="<%item.id%>" <%if params.classs == item.id%>selected<%/if%>><%item.name%></option>
                <%/each%>
            </select>
        </div>
    </div>
    <%/if%>
    <%if params.type == 2 || params.type == 3%>
    <div class="form-group">
        <div class="col-sm-2 control-label">排序方式</div>
        <div class="col-sm-9">
            <label class="radio-inline"><input type="radio" name="orders" value="1" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 1%>checked<%/if%>>综合</label>
            <label class="radio-inline"><input type="radio" name="orders" value="2" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 2%>checked<%/if%>>按销量</label>
            <label class="radio-inline"><input type="radio" name="orders" value="3" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 3%>checked<%/if%>>价格降序</label>
            <label class="radio-inline"><input type="radio" name="orders" value="4" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 4%>checked<%/if%>>价格升序</label>
            <label class="radio-inline"><input type="radio" name="orders" value="5" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 5%>checked<%/if%>>创建时间</label>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">显示数量</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%params.show_num%>" data-min="1" data-max="100"></div>
                <div class="col-sm-9 control-labe count"><span><%params.show_num%></span></div>
                <input class="diy-bind input" data-bind-child="params" data-bind="show_num" value="<%params.show_num%>" type="hidden" />
            </div>
        </div>
    </div>
    <%/if%>
</script>
<!-- 拼团商品组  风格二 -->
<script type="text/html" id="tpl_edit_fightgroup_goods2">
    <div class="form-group">
        <div class="col-sm-2 control-label">背景颜色</div>
        <div class="col-sm-9">
            <div class="input-group input-group-sm">
                <input class="form-control diy-bind color" data-bind-child="style" data-bind="bgColor" value="<%style.bgColor||'#FFFFFF'%>" type="color" />
                <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">外边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.margin||'0'%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.margin||'0'%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="margin" value="<%style.margin%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">内边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.padding||'0'%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.padding||'0'%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="padding" value="<%style.padding%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">下边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.marginBottom%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.marginBottom%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="marginBottom" value="<%style.marginBottom%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">角标设置</div>
        <div class="col-sm-10">
            <label class="radio-inline"><input type="radio" name="marker_set" value="0" class="diy-bind" data-bind-child="params" data-bind="marker_set" <%if params.marker_set != 1%>checked<%/if%>>隐藏</label>
            <label class="radio-inline"><input type="radio" name="marker_set" value="1" class="diy-bind" data-bind-child="params" data-bind="marker_set" <%if params.marker_set == 1%>checked<%/if%>>显示</label>
        </div>
    </div>
    <%if params.marker_set == 1%>
        <div class="form-group">
            <div class="col-sm-2 control-label">角标背景颜色</div>
            <div class="col-sm-9">
                <div class="input-group input-group-sm">
                    <input class="form-control diy-bind color" data-bind-child="style" data-bind="marker_bg" value="<%style.marker_bg||'#FF4444'%>" type="color" />
                    <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">角标字体颜色</div>
            <div class="col-sm-9">
                <div class="input-group input-group-sm">
                    <input class="form-control diy-bind color" data-bind-child="style" data-bind="marker_color" value="<%style.marker_color||'#FFFFFF'%>" type="color" />
                    <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
                </div>
            </div>
        </div>
    <%/if%>
    <div class="form-group">
        <div class="col-sm-2 control-label">选择商品</div>
        <div class="col-sm-10">
            <label class="radio-inline"><input type="radio" name="type" value="1" class="diy-bind" data-bind-child="params" data-bind="type" <%if params.type == 1%>checked<%/if%>>手动选择</label>
            <label class="radio-inline"><input type="radio" name="type" value="2" class="diy-bind" data-bind-child="params" data-bind="type" <%if params.type == 2%>checked<%/if%>>自动加载</label>
        </div>
    </div>
    <%if params.type == 1%>
    <div class="form-items indent" data-min="2">
        <div class="inner">
            <%each data as val key%>
            <div class="item" data-id="<%key%>">
                <span class="btn-del" title="删除"></span>
                <div class="item-image">
                    <img src="<%val.logo%>" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/nopic.jpg';"/>
                    <span class="select_goods selectButton" data-plugin="<%plugin%>" data-id="<%key%>">选择商品</span>
                </div>
                <div class="item-form">
                    <div class="input-group" style="margin-bottom:0px; ">
                        <span class="input-group-addon btn btn-default">商品名称</span>
                        <input type="text" class="form-control" disabled value="<%val.goods_name%>" />
                    </div>
                    <div class="input-group" style="margin-top:10px;margin-bottom:0px; ">
                        <span class="input-group-addon btn btn-default">店铺名称</span>
                        <input type="text" class="form-control diy-bind" disabled value="<%val.storename%>" />
                    </div>
                </div>
            </div>
            <%/each%>
        </div>
        <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
    </div>
    <%/if%>
    <%if params.type == 2%>
    <div class="form-group">
        <div class="col-sm-2 control-label">自动加载</div>
        <div class="col-sm-9">
            <select name="classs" class="form-control select2 diy-bind" data-bind="classs" data-bind-child="params" >
                <option value="-1">全部商品</option>
                <%each goodCate.list as item%>
                <option value="<%item.id%>" <%if params.classs == item.id%>selected<%/if%>><%item.name%></option>
                <%/each%>
            </select>
        </div>
    </div>
    <%/if%>
    <%if params.type == 2 || params.type == 3%>
    <div class="form-group">
        <div class="col-sm-2 control-label">排序方式</div>
        <div class="col-sm-9">
            <label class="radio-inline"><input type="radio" name="orders" value="1" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 1%>checked<%/if%>>综合</label>
            <label class="radio-inline"><input type="radio" name="orders" value="2" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 2%>checked<%/if%>>按销量</label>
            <label class="radio-inline"><input type="radio" name="orders" value="3" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 3%>checked<%/if%>>价格降序</label>
            <label class="radio-inline"><input type="radio" name="orders" value="4" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 4%>checked<%/if%>>价格升序</label>
            <label class="radio-inline"><input type="radio" name="orders" value="5" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 5%>checked<%/if%>>创建时间</label>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">显示数量</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%params.show_num%>" data-min="1" data-max="100"></div>
                <div class="col-sm-9 control-labe count"><span><%params.show_num%></span></div>
                <input class="diy-bind input" data-bind-child="params" data-bind="show_num" value="<%params.show_num%>" type="hidden" />
            </div>
        </div>
    </div>
    <%/if%>
</script>
<!-- 拼团商品组  风格三 -->
<script type="text/html" id="tpl_edit_fightgroup_goods3">
    <div class="form-group">
        <div class="col-sm-2 control-label">背景颜色</div>
        <div class="col-sm-9">
            <div class="input-group input-group-sm">
                <input class="form-control diy-bind color" data-bind-child="style" data-bind="bgColor" value="<%style.bgColor||'#FFFFFF'%>" type="color" />
                <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">外边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.margin||'0'%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.margin||'0'%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="margin" value="<%style.margin%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">内边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.padding||'0'%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.padding||'0'%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="padding" value="<%style.padding%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">下边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.marginBottom%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.marginBottom%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="marginBottom" value="<%style.marginBottom%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">选择商品</div>
        <div class="col-sm-10">
            <label class="radio-inline"><input type="radio" name="type" value="1" class="diy-bind" data-bind-child="params" data-bind="type" <%if params.type == 1%>checked<%/if%>>手动选择</label>
            <label class="radio-inline"><input type="radio" name="type" value="2" class="diy-bind" data-bind-child="params" data-bind="type" <%if params.type == 2%>checked<%/if%>>自动加载</label>
        </div>
    </div>
    <%if params.type == 1%>
    <div class="form-items indent" data-min="1">
        <div class="inner">
            <%each data as item itemid%>
            <div class="item"  data-id="<%itemid%>">
                <span class="btn-del" title="删除"></span>
                <div class="item-image">
                    <img src="<%item.logo%>" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/nopic.jpg';"/>
                    <span class="select_goods selectButton" data-plugin="<%plugin%>" data-id="<%itemid%>">选择商品</span>
                </div>
                <div class="item-form">
                    <div class="input-group" style="margin-bottom:0;">
                        <span class="input-group-addon btn btn-default">商品名称</span>
                        <input type="text" class="form-control" disabled value="<%item.goods_name%>" />
                    </div>
                    <div class="input-group" style="margin-top:10px;margin-bottom:0; ">
                        <span class="input-group-addon btn btn-default">店铺名称</span>
                        <input type="text" class="form-control diy-bind" disabled value="<%item.storename%>" />
                    </div>
                </div>
            </div>
            <%/each%>
        </div>
        <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
    </div>
    <%/if%>
    <%if params.type == 2%>
    <div class="form-group">
        <div class="col-sm-2 control-label">选择分类</div>
        <div class="col-sm-9">
            <select name="classs" class="form-control select2 diy-bind" data-bind="classs" data-bind-child="params" >
                <option value="-1">全部商品</option>
                <%each goodCate.list as item%>
                <option value="<%item.id%>" <%if params.classs == item.id%>selected<%/if%>><%item.name%></option>
                <%/each%>
            </select>
        </div>
    </div>
    <%/if%>
    <%if params.type == 2 || params.type == 3%>
    <div class="form-group">
        <div class="col-sm-2 control-label">排序方式</div>
        <div class="col-sm-9">
            <label class="radio-inline"><input type="radio" name="orders" value="1" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 1%>checked<%/if%>>综合</label>
            <label class="radio-inline"><input type="radio" name="orders" value="2" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 2%>checked<%/if%>>按销量</label>
            <label class="radio-inline"><input type="radio" name="orders" value="3" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 3%>checked<%/if%>>价格降序</label>
            <label class="radio-inline"><input type="radio" name="orders" value="4" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 4%>checked<%/if%>>价格升序</label>
            <label class="radio-inline"><input type="radio" name="orders" value="5" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 5%>checked<%/if%>>创建时间</label>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">显示数量</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%params.show_num%>" data-min="1" data-max="100"></div>
                <div class="col-sm-9 control-labe count"><span><%params.show_num%></span></div>
                <input class="diy-bind input" data-bind-child="params" data-bind="show_num" value="<%params.show_num%>" type="hidden" />
            </div>
        </div>
    </div>
    <%/if%>
</script>
<!-- 拼团商品组  风格四 -->
<script type="text/html" id="tpl_edit_fightgroup_goods4">
    <div class="form-group">
        <div class="col-sm-2 control-label">背景颜色</div>
        <div class="col-sm-9">
            <div class="input-group input-group-sm">
                <input class="form-control diy-bind color" data-bind-child="style" data-bind="bgColor" value="<%style.bgColor||'#FFFFFF'%>" type="color" />
                <span class="input-group-addon btn btn-default" onclick="$(this).prev().val('#ffffff').trigger('propertychange')">清除</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">外边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.margin||'0'%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.margin||'0'%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="margin" value="<%style.margin%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">内边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.padding||'15'%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.padding||'15'%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="padding" value="<%style.padding%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">下边距</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%style.marginBottom%>" data-min="0" data-max="30"></div>
                <div class="col-sm-9 control-labe count"><span><%style.marginBottom%></span>px(像素)</div>
                <input class="diy-bind input" data-bind-child="style" data-bind="marginBottom" value="<%style.marginBottom%>" type="hidden" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">浏览用户</div>
        <div class="col-sm-10">
            <label class="radio-inline"><input type="radio" name="buy_user" value="0" class="diy-bind" data-bind-child="params" data-bind="buy_user" <%if params.buy_user != 1%>checked<%/if%>>隐藏</label>
            <label class="radio-inline"><input type="radio" name="buy_user" value="1" class="diy-bind" data-bind-child="params" data-bind="buy_user" <%if params.buy_user == 1%>checked<%/if%>>显示</label>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">排行图标</div>
        <div class="col-sm-10">
            <label class="radio-inline"><input type="radio" name="sort_icon" value="0" class="diy-bind" data-bind-child="params" data-bind="sort_icon" <%if params.sort_icon != 1%>checked<%/if%>>隐藏</label>
            <label class="radio-inline"><input type="radio" name="sort_icon" value="1" class="diy-bind" data-bind-child="params" data-bind="sort_icon" <%if params.sort_icon == 1%>checked<%/if%>>显示</label>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">商品标签</div>
        <div class="col-sm-9">
            <div class="input-group form-group" style="margin: 0;">
                <input class="form-control diy-bind" data-bind-child="params" data-bind="goodsLabel" data-placeholder="" maxlength="10" placeholder="请输入商品标签" value="<%params.goodsLabel||'拼团'%>" />
                <span class="input-group-addon btn btn-default" onclick="$(this).prev().prev().val('').trigger('change');">清除</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">选择商品</div>
        <div class="col-sm-10">
            <label class="radio-inline"><input type="radio" name="type" value="1" class="diy-bind" data-bind-child="params" data-bind="type" <%if params.type == 1%>checked<%/if%>>手动选择</label>
            <label class="radio-inline"><input type="radio" name="type" value="2" class="diy-bind" data-bind-child="params" data-bind="type" <%if params.type == 2%>checked<%/if%>>自动加载</label>
        </div>
    </div>
    <%if params.type == 1%>
    <div class="form-items indent" data-min="1">
        <div class="inner">
            <%each data as item itemid%>
            <div class="item"  data-id="<%itemid%>">
                <span class="btn-del" title="删除"></span>
                <div class="item-image">
                    <img src="<%item.logo%>" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/nopic.jpg';"/>
                    <span class="select_goods selectButton" data-plugin="<%plugin%>" data-id="<%itemid%>">选择商品</span>
                </div>
                <div class="item-form">
                    <div class="input-group" style="margin-bottom:0px; ">
                        <span class="input-group-addon btn btn-default">商品名称</span>
                        <input type="text" class="form-control" disabled value="<%item.goods_name%>" />
                    </div>
                    <div class="input-group" style="margin-top:10px;margin-bottom:0px; ">
                        <span class="input-group-addon btn btn-default">店铺名称</span>
                        <input type="text" class="form-control diy-bind" disabled value="<%item.storename%>" />
                    </div>
                </div>
            </div>
            <%/each%>
        </div>
        <div class="btn btn-w-m btn-block btn-default btn-outline" id="addChild"><i class="fa fa-plus"></i> 添加一个</div>
    </div>
    <%/if%>
    <%if params.type == 2%>
    <div class="form-group">
        <div class="col-sm-2 control-label">选择分类</div>
        <div class="col-sm-9">
            <select name="classs" class="form-control select2 diy-bind" data-bind="classs" data-bind-child="params" >
                <option value="-1">全部商品</option>
                <%each goodCate.list as item%>
                <option value="<%item.id%>" <%if params.classs == item.id%>selected<%/if%>><%item.name%></option>
                <%/each%>
            </select>
        </div>
    </div>
    <%/if%>
    <%if params.type == 2 || params.type == 3%>
    <div class="form-group">
        <div class="col-sm-2 control-label">排序方式</div>
        <div class="col-sm-9">
            <label class="radio-inline"><input type="radio" name="orders" value="1" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 1%>checked<%/if%>>综合</label>
            <label class="radio-inline"><input type="radio" name="orders" value="2" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 2%>checked<%/if%>>按销量</label>
            <label class="radio-inline"><input type="radio" name="orders" value="3" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 3%>checked<%/if%>>价格降序</label>
            <label class="radio-inline"><input type="radio" name="orders" value="4" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 4%>checked<%/if%>>价格升序</label>
            <label class="radio-inline"><input type="radio" name="orders" value="5" class="diy-bind" data-bind-child="params" data-bind="orders" <%if params.orders == 5%>checked<%/if%>>创建时间</label>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-2 control-label">显示数量</div>
        <div class="col-sm-9">
            <div class="form-group">
                <div class="slider col-sm-8" data-value="<%params.show_num%>" data-min="1" data-max="100"></div>
                <div class="col-sm-9 control-labe count"><span><%params.show_num%></span></div>
                <input class="diy-bind input" data-bind-child="params" data-bind="show_num" value="<%params.show_num%>" type="hidden" />
            </div>
        </div>
    </div>
    <%/if%>
</script>
